; XianyunGlasses
; Constants -------------------------

[Constants]
global $managed_slot_id = 2
global $active = 0
global $creditinfo = 0

[Present]
if $managed_slot_id == $\modmanageragl\group_25\active_slot
post $active = 0
run = 
; Overrides -------------------------
endif

[TextureOverrideXianyunGlassesPosition]
if $managed_slot_id == $\modmanageragl\group_25\active_slot
hash = d739f81b
vb0 = ResourceXianyunGlassesPosition
$active = 1
match_priority = 0
endif

[TextureOverrideXianyunGlassesBlend]
if $managed_slot_id == $\modmanageragl\group_25\active_slot
hash = 8fb2f674
vb1 = ResourceXianyunGlassesBlend
handling = skip
draw = 4,0 
match_priority = 0
endif

[TextureOverrideXianyunGlassesTexcoord]
if $managed_slot_id == $\modmanageragl\group_25\active_slot
hash = 1b0b24db
vb1 = ResourceXianyunGlassesTexcoord
match_priority = 0
endif

[TextureOverrideXianyunGlassesVertexLimitRaise]
if $managed_slot_id == $\modmanageragl\group_25\active_slot
hash = 9328313b
match_priority = 0
endif

[TextureOverrideXianyunGlassesIB]
if $managed_slot_id == $\modmanageragl\group_25\active_slot
hash = 4212b7da
handling = skip
drawindexed = auto
match_priority = 0
endif

[TextureOverrideXianyunGlassesHead]
if $managed_slot_id == $\modmanageragl\group_25\active_slot
hash = 4212b7da
match_first_index = 0
ib = ResourceXianyunGlassesHeadIB
ps-t0 = ResourceXianyunGlassesHeadNormalMap
ps-t1 = ResourceXianyunGlassesHeadDiffuse
ps-t2 = ResourceXianyunGlassesHeadLightMap
; CommandList -----------------------
match_priority = 0
endif

[CommandListCreditInfo]
if $managed_slot_id == $\modmanageragl\group_25\active_slot
if $creditinfo == 0 && $active == 1
	pre Resource\ShaderFixes\help.ini\Notification = ResourceCreditInfo
	pre run = CustomShader\ShaderFixes\help.ini\FormatText
	pre $\ShaderFixes\help.ini\notification_timeout = time + 5.0
	$creditinfo = 1
endif
; Resources -------------------------
endif

[ResourceXianyunGlassesPosition]
type = Buffer
stride = 40
filename = XianyunGlassesPosition.buf

[ResourceXianyunGlassesBlend]
type = Buffer
stride = 32
filename = XianyunGlassesBlend.buf

[ResourceXianyunGlassesTexcoord]
type = Buffer
stride = 12
filename = XianyunGlassesTexcoord.buf

[ResourceXianyunGlassesHeadIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = XianyunGlassesHead.ib

[ResourceXianyunGlassesHeadNormalMap]
filename = XianyunGlassesHeadNormalMap.dds

[ResourceXianyunGlassesHeadDiffuse]
filename = XianyunGlassesHeadDiffuse.dds

[ResourceXianyunGlassesHeadLightMap]
filename = XianyunGlassesHeadLightMap.dds

[ResourceCreditInfo]
type = Buffer
data = "Created by Kaze"
; .ini generated by GIMI (Genshin-Impact-Model-Importer)
; If you have any issues or find any bugs, please open a ticket at https://github.com/SilentNightSound/GI-Model-Importer/issues or contact SilentNightSound#7430 on discord

